package com.hkbigdata.flink.domain;

import java.util.Properties;

/**
 * @Author: JinChen Zhu
 * @CreateTime: 2024-06-27  10:19
 */
public class MyProperties {
    //读取配置文件
    private static Properties properties = new Properties();
    static {
        try {
            properties.load(MyProperties.class.getClassLoader().getResourceAsStream("flink.properties"));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    public static String getProperty(String key) {
        return properties.getProperty(key);
    }
}
